#pragma once
#define protected public
#include "XAbstractParseNode.h"

class XBranchParseNode :
    public XAbstractParseNode
{
public:
    XBranchParseNode();
    virtual ~XBranchParseNode();
    virtual bool isLeaf() const;
    virtual const char *getName() const = 0;
    virtual int getCountArgs() const = 0;
    virtual XAbstractParseNode *getChild(int index) const;

protected:
    XAbstractParseNode * *childs;

    friend class XFunctionParser;
};

